package com.xxl.job.admin.dao;

import com.xxl.job.admin.core.model.CronJob;
import com.xxl.job.admin.core.model.Server;
import com.xxl.job.admin.dto.CronJobDetailsDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ServerDao {

    Server findByIp(@Param("ip") String ip);
    void insertServer(Server server);

    Integer findServerIdByIp(@Param("ip") String ip);
}
